package com.auth.manage.infr.exception.errorcode;

import com.auth.manage.base.exception.ErrorCode;

public enum AuthorizationErrorCode implements ErrorCode {
    ON_PORT_LIMIT("ON_PORT_LIMIT", "当前授权码已达到可绑定的端口上限"),
    AUTHORIZATION_CODE_NOT_EXIST("AUTHORIZATION_CODE_NOT_EXIST", "授权码不存在"),
    OPERATION_FAIL("OPERATION_FAIL", "操作失败"),
    ;

    private String msg;
    private String code;

    AuthorizationErrorCode(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
